
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ProductController } from './controllers/product.controller';
import { ProductService } from './services/product.service';
import { Product } from './entities/product.entity';

@Module({
  imports: [TypeOrmModule.forFeature([Product])], // 注册实体
  controllers: [ProductController], // 注册控制器
  providers: [ProductService], // 注册服务
})
export class ShopModule {}